package com.is.add.util;

import net.sf.json.JSONObject;

public class SMSResult {
	private String base;
	private String returnCode;
	private String returnMessage;
	private String returnData;
	
	public SMSResult(String base) {
		this.base=base;
		JSONObject json=JSONObject.fromObject(this.base);
		JSONObject data=JSONObject.fromObject(json.getString("d"));
		this.returnCode = data.getString("retcode");
		this.returnMessage = data.getString("retmessage");
		this.returnData = data.getString("redata");
	}
	public String getReturnCode() {
		return returnCode;
	}
	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}
	public String getReturnMessage() {
		return returnMessage;
	}
	public void setReturnMessage(String returnMessage) {
		this.returnMessage = returnMessage;
	}
	public String getReturnData() {
		return returnData;
	}
	public void setReturnData(String returnData) {
		this.returnData = returnData;
	}
	public String toString(){
		return this.base;
	}
}
